package com.senlingspace.system.service.impl;

import com.senlingspace.system.domain.SlkjOrderStatusCompensation;
import com.senlingspace.system.mapper.SlkjOrderStatusCompensationMapper;
import com.senlingspace.system.service.ISlkjOrderStatusCompensationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * 订单状态补偿表Service业务层处理
 * @author lebronjames
 * @date 2024/07/26
 */
@Service
public class SlkjOrderStatusCompensationServiceImpl implements ISlkjOrderStatusCompensationService {

    @Autowired
    private SlkjOrderStatusCompensationMapper slkjOrderStatusCompensationMapper;

    @Override
    public SlkjOrderStatusCompensation queryById(Long id) {
        return slkjOrderStatusCompensationMapper.queryById(id);
    }

    @Override
    public List<SlkjOrderStatusCompensation> queryList(SlkjOrderStatusCompensation slkjOrderStatusCompensation) {
        return slkjOrderStatusCompensationMapper.queryList(slkjOrderStatusCompensation);
    }

    @Override
    public long count(SlkjOrderStatusCompensation slkjOrderStatusCompensation) {
        return slkjOrderStatusCompensationMapper.count(slkjOrderStatusCompensation);
    }

    @Override
    public int insert(SlkjOrderStatusCompensation slkjOrderStatusCompensation) {
        return slkjOrderStatusCompensationMapper.insert(slkjOrderStatusCompensation);
    }

    @Override
    public int update(SlkjOrderStatusCompensation slkjOrderStatusCompensation) {
        return slkjOrderStatusCompensationMapper.update(slkjOrderStatusCompensation);
    }

    @Override
    public List<SlkjOrderStatusCompensation> queryListByStatus() {
        return slkjOrderStatusCompensationMapper.queryListByStatus();
    }

}
